package com.zbxx.dto;
/**
* @Description:    暴露秒杀地址DTO---数据传输层
* @Author:         zt
* @CreateDate:     2018/11/3 0003 10:57
* @UpdateUser:     zt
* @UpdateDate:     2018/11/3 0003 10:57
* @UpdateRemark:   修改内容
* @Version:        1.0
*/

public class Exposer {
    //是否开启秒杀
    private  boolean exposed;
    //一种加密措施
    private String  md5;
    //秒杀的Id
    private long id;
    //系统当前时间(毫秒)
    private long now;
    //秒杀的开始
    private long start;
    //秒杀的结束
    private long end;

    //是否开始Md5
    public Exposer(boolean exposed, String md5, long id) {
        this.exposed = exposed;
        this.md5 = md5;
        this.id = id;
    }

    //是否开启当前系统时间
    public Exposer(boolean exposed,long now, long start, long end, long id) {
        this.exposed = exposed;
        this.now = now;
        this.start = start;
        this.end = end;
        this.id=id;
    }

    //是否开启id
    public Exposer(boolean exposed, long id) {
        this.exposed = exposed;
        this.id = id;
    }

    public boolean isExposed() {
        return exposed;
    }

    public void setExposed(boolean exposed) {
        this.exposed = exposed;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getNow() {
        return now;
    }

    public void setNow(long now) {
        this.now = now;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }


}
